﻿using System;

namespace Progrom
{
    class Program
    {
        static void Main(string[] args)
        {
            //常量
            const double PI = 3.14;
            int radius = 3;
            int high = 4;
            Console.WriteLine("圆柱的体积：是" + PI * radius * radius * high);

            int Mark = 100;
            switch (Mark / 10)
            {
                case 10:
                    Console.WriteLine("满分");
                    break;
                case 9:
                    Console.WriteLine("优秀");
                    break;
                case 8:
                    Console.WriteLine("良好");
                    break;
                case 7:
                    Console.WriteLine("一般");
                    break;
            }

            //IF ELSE（单个）

            bool res = 2 > 1;
            if (res)
            {
                Console.WriteLine("正确");

            }

            //IF ELSE(双个)
            int SS = 8;
            if (SS > 10)
            {
                Console.WriteLine("大于");
            }
            else
            {
                Console.WriteLine("小于");
            }
            //IF ELSE（多个）
            int DS = 10;
            if (DS > 15)
            {
                Console.WriteLine("大于15");
            }
            else if (DS > 11)
            {
                Console.WriteLine("大于11");
            }
            else
            {
                Console.WriteLine("得于小于10");
            }
        }
    }
}
